import express from 'express';

import UserRoutes from './user.js';
import DeviceRoutes from './device.js';
import AlertRoutes from './alert.js';
import AIRoutes from './ai.js'
import healthDataRouter from './healthData.js'
import recordRoute from './record.js'
import TokenUtil from '../utils/TokenUtil.js';
import sleepRoutes from './sleepData.js'
import activityRoutes from './activityData.js'


const router = express.Router();

router.get('/', (req, res) => {
  res.send('This is the API root!');
});

router.use('/users', UserRoutes);

router.use('/devices', DeviceRoutes);

// , TokenUtil.authenticateToken()
router.use('/alerts', AlertRoutes);

router.use('/ai',AIRoutes);

router.use('/health', healthDataRouter);

router.use('/sleep',sleepRoutes);

router.use('/activity',activityRoutes);

router.use('/record', recordRoute);

export default router;
